/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package consys.social.core.service;

import consys.social.core.NotAuthorizedException;
import consys.social.core.bo.DiscussionPost;
import consys.social.core.bo.WallPost;
import java.io.IOException;
import java.util.Date;
import java.util.List;

/**
 *
 * @author petan
 */
public interface DiscussionService {

    void postDiscussion(WallPost post, DiscussionPost discussion) throws IOException, NotAuthorizedException;

    void deleteDiscussionPost(WallPost what, DiscussionPost discussion) throws IOException, NotAuthorizedException;

    List<DiscussionPost> loadDiscussion(WallPost post, int count, Date from) throws IOException;

    List<DiscussionPost> loadDiscussionNewest(WallPost post, int count) throws IOException;
}